<template>
	<uni-header title="我的资产"></uni-header>
	<view class="header">
		<image src="../../static/property-1.png" mode=""></image>
		<view class="content">
			<text class="tit">可提现金额(B)</text>
			<text class="value" style="margin-bottom: 48rpx;">00.00</text>
			<text class="tit">冻结金额(B)</text>
			<text class="value" style="font-size: 32rpx;">00.00</text>
			<view class="btn-box">
				<button class="btn" @click="recharge">充值</button>
				<button class="btn" @click="withdrawal">提现</button>
			</view>
		</view>
	</view>
	<view class="header-cloum">
		<image src="/static/property-2.png" mode=""></image>
		<view class="content">
			<view class="item">
				<text class="title">积分</text>
				<text class="value">0</text>
				<button class="btn" @click="integral">兑换</button>
			</view>
			<view class="item">
				<text class="title">算力</text>
				<text class="value">0T</text>
				<button class="btn" @click="myPower">算力</button>
			</view>
		</view>
	</view>
	<text class="title">明细</text>
	<view class="list">
		<!-- <view class="item" v-for="(item,index) in 10">
			<view class="">
				<view class="left">
					<text class="label">积分兑换</text>
					<text class="due" >未到期</text>
					<text class="due redeemable" >完成</text>
				</view>
				<text class="time">2023-11-23 10:23:34</text>
			</view>
			<text class="desc">+¥300.00</text>
		</view> -->
		<uni-empty></uni-empty>
	</view>
</template>

<script setup>
const integral = ()=>{
	uni.navigateTo({
		url:"/pages/integral/integral"
	})
}
const myPower = ()=>{
	uni.navigateTo({
		url:"/pages/myPower/myPower"
	})
}
const recharge = ()=>{
	uni.navigateTo({
		url:"/pages/recharge/recharge"
	})
}
const withdrawal = ()=>{
	uni.navigateTo({
		url:"/pages/withdrawal/withdrawal"
	})
}
</script>

<style lang="scss" scoped>
	.list {
		padding: 0 32rpx;

		.item {
			width: 686rpx;
			height: 156rpx;
			border-bottom: 2rpx solid #F2F4FA;
			display: flex;
			align-items: center;
			justify-content: space-between;

			view {
				.left {
					display: flex;
					align-items: center;

					.due {
						display: block;
						margin-left: 8rpx;
						width: 64rpx;
						height: 32rpx;
						border-radius: 4rpx;
						line-height: 32rpx;
						text-align: center;
						font-size: 24rpx;
						color: #FFA424;

						border: 2rpx solid rgba(0, 184, 98, 0.45);
					}

					.redeemable {
						border: 2rpx solid rgba(0, 184, 98, 0.45);
						color: #00B862;
					}
				}

				.label {
					color: #181D29;
					font-size: 32rpx;
					display: block;
				}

				.time {
					display: block;
					margin-top: 8rpx;
					font-size: 24rpx;
				}
			}

			.desc {
				color: #F53B47;
				font-size: 32rpx;
			}
		}
	}

	.title {
		color: #181D29;
		display: block;
		margin: 32rpx;
		font-weight: 500;
		font-size: 36rpx;
	}

	.header-cloum {
		width: 686rpx;
		height: 300rpx;
		margin: 0 auto;
		position: relative;
		margin-bottom: 32rpx;

		image {
			display: block;
			width: 686rpx;
			height: 300rpx;
			position: absolute;
			top: 0;
		}

		.content {
			width: 686rpx;
			height: 300rpx;
			position: relative;
			display: flex;
			justify-content: space-between;

			.item {
				width: 330rpx;
				height: 252rpx;

				.title {
					display: block;
					color: #fff;
					font-size: 24rpx;
					line-height: 36rpx;
					margin: 50rpx 0 0 32rpx;
				}

				.value {
					color: #fff;
					font-weight: 700;
					display: block;
					font-size: 40rpx;
					margin: 0 0 32rpx 32rpx;
				}

				.btn {
					display: block;
					border: none;
					width: 120rpx;
					height: 72rpx;
					outline: none;
					background: rgba(255, 255, 255, 0.2);
					// border-radius: 16rpx;
					color: #fff;
					font-size: 28rpx;
					font-weight: 500;
					padding: 0;
					margin: 0 0 0 180rpx;					
				}
				.btn::after{
					border: none;
				}
			}
		}
	}

	.header {
		width: 686rpx;
		height: 488rpx;
		margin: 0 auto;
		position: relative;
		margin-bottom: 24rpx;

		image {
			display: block;
			width: 686rpx;
			height: 488rpx;
			position: absolute;
			top: 0;
		}

		.content {

			position: relative;
			padding: 48rpx;

			.tit {
				display: block;
				color: #fff;
				font-size: 24rpx;
				line-height: 36rpx;
			}

			.value {
				color: #fff;
				font-weight: 700;
				display: block;
				font-size: 64rpx;
			}

			.btn-box {
				display: flex;
				justify-content: flex-end;
				margin-top: 48rpx;

				.btn {
					display: block;

					width: 144rpx;
					height: 72rpx;
					background: #FFFFFF;
					border-radius: 16rpx;
					color: #1E53E7;
					font-size: 28rpx;
					font-weight: 500;
					padding: 0;
					margin: 0 0 0 16rpx;
				}
			}
		}
	}
</style>